package com.design.pattern.builder;

import lombok.Getter;

/**
 * @author 王霄
 * @date 2022/6/14 14:20
 */
public class Foot {
    @Getter
    private String name;

    public static class Builder extends Robot.Builder {

        private final Foot foot = new Foot();

        public Builder(Robot robot) {
            super(robot);
            robot.setFoot(foot);
        }

        public Foot.Builder name(String name) {
            this.foot.name = name;
            return this;
        }
    }
}
